<!DOCTYPE html>
<html>
  <head>

    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/semantic-ui/2.0.7/semantic.min.css">
    <link rel="stylesheet" type="text/css" href="https://cdn.rawgit.com/google/code-prettify/master/src/prettify.css">
    <link rel="stylesheet" type="text/css" href="../examples.css">

    <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
    <script src="https://cdn.jsdelivr.net/semantic-ui/2.0.7/semantic.min.js"></script>
    <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.14/angular.min.js"></script>
    <script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>

    <script src="../sm-core.js"></script>
    <script src="../sm-addons.js"></script>
    <script src="sm-embed.js"></script>

    <script>
      angular.module('semantic-ui')
        .controller('MainController', function($scope) 
        {
          
        })
      ;
    </script>

  </head>
  <body ng-app="semantic-ui" ng-controller="MainController">

    <div class="ui container">
    
      <div class="ui segment">

        <h3 class="ui header">YouTube</h3>

        <p>An embed can be used to display YouTube content.</p>

        <div data-copy-to="#example0">
          <sm-embed source="youtube" source-id="pfdu_gTry8E" placeholder="http://semantic-ui.com/images/image-16by9.png"></sm-embed>
        </div>

        <pre class="ui segment prettyprint lang-html" id="example0"></pre>

      </div>

      <div class="ui segment">

        <h3 class="ui header">Vimeo</h3>

        <p>An embed can be used to display Vimeo content.</p>

        <div data-copy-to="#example1">
          <sm-embed source="vimeo" source-id="125292332" placeholder="http://semantic-ui.com/images/vimeo-example.jpg"></sm-embed>
        </div>

        <pre class="ui segment prettyprint lang-html" id="example1"></pre>

      </div>
      <div class="ui segment">

        <h3 class="ui header">Custom Content</h3>

        <p>An embed can display any web content.</p>

        <div data-copy-to="#example2">
          <sm-embed url="http://www.myfav.es/jack" placeholder="http://semantic-ui.com/images/image-16by9.png" icon="right circle arrow"></sm-embed>
        </div>

        <pre class="ui segment prettyprint lang-html" id="example2"></pre>

      </div>
      <div class="ui segment">

        <h3 class="ui header">Aspect Ratio</h3>

        <p>An embed can specify an alternative aspect ratio.</p>

        <div data-copy-to="#example3">
          <sm-embed class="4:3" source="youtube" source-id="HTZudKi36bo" placeholder="http://semantic-ui.com/images/4by3.jpg"></sm-embed>
        </div>

        <pre class="ui segment prettyprint lang-html" id="example3"></pre>

      </div>
      
    </div>

    <script src="../examples.js"></script>

  </body>
</html>